#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{

}
int NumberOf1(int n) 
    {
        int count = 0;
        for (int i = 0; i < 32; i++)
        {
            if (n & (1 << i))
                count++;
        }
        return count;
        // write code here
    }